/**
 * 				Sender.java
 *				------------
 *		
 *   Author:	bin04017
 *   ID:		bin04017
 *	 Created:	24.01.2007
 *	 Project:	Mochito
 *	 Package:	tools.sender
 *	 Usage:		
 */
package mochito.tools.clientPackage.sender;

import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;

/**
 * @author bin04017
 * 
 */
public class Sender {

	public static void send(String host, Integer port, String msg) throws IOException {
		Socket clientSocket = new Socket(host, port);
		PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
		out.print(msg);
		out.flush();
		out.close();
	}
}
